{layout name="p/base"}
  <div id="page-wrapper">
    <div class="row">
      <div class="col-lg-12">
        <h1>房车管理 <small>新建房车信息</small></h1>
        <ol class="breadcrumb">
          <li><a href="index.php"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li><a href="car-list.php"><i class="fa fa-dashboard"></i> 房车信息列表</a></li>
          <li class="active"><i class="fa fa-table"></i> 车系模板</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          这里创建和编辑车系模板，快速创建房车信息
        </div>
      </div>
    </div>
    <!-- 车系表start -->
    <div class="col-lg-12">
      <div class="panel panel-default">
        <div class="panel-heading ">
          <h3 class="panel-title">
            车系模板
          </h3>
        </div>
        <div class="panel-body">
          <div class="mybtn">
            <div class="btn-group">
              <a href="/cartpl/create" class="btn btn-primary" type="submit">增加</a>
            </div>
            <div class="btn-group">
              <button class="btn btn-default" id='del' type="submit">删除</button>
            </div>
          </div>
          <!-- 品牌表start -->
          <div class="table-responsive">
            <table class="table table-bordered table-hover table-striped tablesorter">
              <thead>
                <tr>
                  <th><div class="checker"><span><input type="checkbox" name=""></span></div></th>
                  
                  <th>车系名称</th>
                  <th>描述</i></th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>
              <form id='delete' class="form-horizontal" role="form" action="" method="post">
              <input type="hidden" id='method' name="_method" value="DELETE">
                {volist name='list' id='vo'}
                <tr>
                  <td><div class="checker"><span><input type="checkbox" name="ids[]" value="{$vo.id}"></span></div></td>
                  <td>{$vo.cartpl_name}</td>
                  <td>{$vo.describe}</td>
                  <td><a href="/cartpl/{$vo.id}/edit">编辑</a></td>
                </tr>
                {/volist}
              </form>
              </tbody>
            </table>
          </div>
          <!-- 品牌表end -->
        </div>
      </div>
    </div>
    <!-- 车系表end -->
  </div><!-- /#page-wrapper -->

<script type="text/javascript" src="/jquery.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
    $("#del").click(function(){
      $("#delete").attr('action','/cartpl/delete');
      $("#delete").submit();
      });
    });
</script>
